@use '../../../../../styles/input.scss' as input;
@use '../../../label/label.component.scss' as label;

@mixin preview-theme($show-dark) {
  $theme: if($show-dark, $caos-dark-app-theme, $caos-light-app-theme);

  @include input.input-theme($theme);
  @include label.cnsl-label-theme($theme);
  //   @include mat.all-component-themes($theme);

  $primary: map-get($theme, primary);
  $primary-color: map-get($primary, 500);
  $is-dark-theme: map-get($theme, is-dark);
  $background: map-get($theme, background);
  $foreground: map-get($theme, foreground);

  .preview {
    pointer-events: none;
    border-radius: 0.5rem;
    transform: scale(0.9);
    color: map-get($foreground, text);

    * {
      pointer-events: none;
    }

    .label {
      font-size: 12px;
      position: absolute;
      left: 0;
      top: 0;
    }

    .dashed {
      padding: 100px 20px;

      .login-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 360px;
        margin: auto;

        @media only screen and (min-width: 1000px) {
          width: 360px;
        }

        img {
          max-width: 160px;
          max-height: 150px;
          margin-bottom: 1rem;
        }

        h1 {
          font-size: 20px;
        }

        .formfield {
          width: 100%;
        }

        .btn-wrapper {
          display: flex;
          width: 100%;
          justify-content: space-between;
        }

        .error-msg {
          align-self: flex-start;
          display: flex;
          flex-direction: row;
          align-items: center;
          outline: none;
          justify-content: flex-start;

          i {
            margin-right: 0.5rem;
          }

          span {
            font-size: 14px;
            margin: 1rem 0;
          }
        }
      }
    }
  }
}
